<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>审批类型：</div>	
            <div class="col-lg-8 col-md-8 form-input" 
            	ng-class="{ 'has-error' : editForm.requestType.$dirty && editForm.requestType.$invalid}">
				<select name="requestType" 
					class="form-control" 
					ng-model="editModel.approvalRule.requestType"
					required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.requestTypeData" value="{{dictionary.dicCd}}" ng-if="dictionary.dicCd!=10">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请岗位级别：</div>
			<div class="col-sm-8 col-md-8 form-input" 
				ng-class="{ 'has-error' : editForm.requestRole.$dirty && editForm.requestRole.$invalid}">
			 	<select name="requestRole" 
			 		class="form-control" 
			 		ng-model="editModel.approvalRule.requestRole"
					ng-change="editModel.selectBindData(editModel.approvalRule.requestRole,1)"
			 		required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.requestRoleData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
			</div>
		</div>
           <div class="col-md-12 form-item" 
           	ng-show="editModel.approvalRule.requestType!=14 || editModel.approvalRule.requestType!=15"
           	ng-hide="editModel.approvalRule.requestType==14 || editModel.approvalRule.requestType==15">
           	<div class="col-sm-3 col-md-3 form-title">起止天数：</div>
            <div class="col-sm-8 col-md-8 form-input">
			 	<input name="fromDays"  
			 		class="form-control" 
			 		ng-model="editModel.approvalRule.fromDays" 
			 		maxLength="3"
			 		ng-pattern="/^([0-9]|[0-9][0-9]|[0-9][0-9][0-9]|999)$/">
			</div>
           </div>
           <div class="col-md-12 form-item" 
           	ng-show="editModel.approvalRule.requestType!=14 || editModel.approvalRule.requestType!=15"
           	ng-hide="editModel.approvalRule.requestType==14 || editModel.approvalRule.requestType==15">
			<div class="col-sm-3 col-md-3 form-title">终止天数：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input name="toDays"  
			 		class="form-control" 
			 		ng-model="editModel.approvalRule.toDays" 
			 		maxLength="3"
			 		ng-pattern="/^([0-9]|[0-9][0-9]|[0-9][0-9][0-9]|999)$/">
			</div>
		</div>
		<div class="col-md-12 form-item" 
			ng-show="editModel.approvalRule.requestRole==99"
			ng-hide="editModel.approvalRule.requestType!=99"> 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>最低审批级别：</div>	
            <div class="col-lg-8 col-md-8 form-input"
            	ng-class="{ 'has-error' : editForm.lowestApprovalRole.$dirty && editForm.lowestApprovalRole.$invalid}">
				<select name="lowestApprovalRole" 
					class="form-control" 
					ng-model="editModel.approvalRule.lowestApprovalRole"
					required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.lowestApprovalRole" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
        </div>
		<div class="col-md-12 form-item" 
			ng-show="editModel.approvalRule.requestRole!=99"
			ng-hide="editModel.approvalRule.requestType==99"> 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>一级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input" 
            	ng-class="{ 'has-error' : editForm.oneApprovalRole.$dirty && editForm.oneApprovalRole.$invalid}">
				<select name="oneApprovalRole" 
					class="form-control" 
					id="aaaaa"
					ng-model="editModel.approvalRule.oneApprovalRole"
					ng-change="editModel.selectBindData(editModel.approvalRule.oneApprovalRole,2)"
					required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.oneApprovalRoleData" value="{{dictionary.dicCd}}" ng-selected="viewModel.selected(dictionary.dicCd,1)">{{dictionary.dicName}}</option>
                   </select>
            </div>
        </div>
		<div class="col-md-12 form-item"
			ng-show="editModel.approvalRule.requestRole!=99"
			ng-hide="editModel.approvalRule.requestType==99"> 	
			<div class="col-sm-3 col-md-3 form-title">二级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approvalRule.twoApprovalRole"
					ng-change="editModel.selectBindData(editModel.approvalRule.twoApprovalRole,3)">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.twoApprovalRoleData" value="{{dictionary.dicCd}}" ng-selected="viewModel.selected(dictionary.dicCd,2)">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
        <div class="col-md-12 form-item"
           	ng-show="editModel.approvalRule.requestRole!=99"
			ng-hide="editModel.approvalRule.requestType==99"> 	
			<div class="col-sm-3 col-md-3 form-title">三级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approvalRule.threeApprovalRole"
					ng-change="editModel.selectBindData(editModel.approvalRule.threeApprovalRole,4)">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.threeApprovalData" value="{{dictionary.dicCd}}" ng-selected="viewModel.selected(dictionary.dicCd,3)">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
         <div class="col-md-12 form-item"
         	ng-show="editModel.approvalRule.requestRole!=99"
			ng-hide="editModel.approvalRule.requestType==99"> 	
			<div class="col-sm-3 col-md-3 form-title">四级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approvalRule.fourApprovalRole"
					ng-change="editModel.selectBindData(editModel.approvalRule.fourApprovalRole,5)">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.fourApprovalRoleData" value="{{dictionary.dicCd}}" ng-selected="viewModel.selected(dictionary.dicCd,4)">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
         <div class="col-md-12 form-item"
         	ng-show="editModel.approvalRule.requestRole!=99"
			ng-hide="editModel.approvalRule.requestType==99"> 	
			<div class="col-sm-3 col-md-3 form-title">五级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approvalRule.fiveApprovalRole">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.fiveApprovalRoleData" value="{{dictionary.dicCd}}" ng-selected="viewModel.selected(dictionary.dicCd,5)">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
	</div>	
</form>